package team.gzjmzy.system.domain.entity;

import team.gzjmzy.common.annotation.Excel;
import team.gzjmzy.common.core.domain.BaseAutoEntity;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 图书馆里对象 t_book
 *
 * @author gzjmzy
 * @date 2021-08-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@TableName("t_book")
public class TBook extends BaseAutoEntity {

    private static final long serialVersionUID = 1L;

    /** 图书名 */
    @Excel(name = "图书名")
    private String title;
    /** 图书价格 */
    @Excel(name = "图书价格")
    private Long cost;
    /** 图书类型 */
    @Excel(name = "图书类型")
    private Integer type;

    private Integer status;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
